<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>用户组管理</title>
    <link href='Public/hdjs/hdjs.css' rel='stylesheet' media='screen'>
    <link rel="stylesheet" type="text/css" href="Public/Admin/css/mod.base.css"/>
    <script type='text/javascript' src='Public/Admin/js/jquery-1.8.2.min.js'></script>
    <script type='text/javascript' src='Public/hdjs/hdjs.min.js'></script>
    <script type='text/javascript' src='Public/hdjs/lhgcalendar.min.js'></script>
    <script src="Public/Admin/js/mod.base.js" type="text/javascript" charset="utf-8"></script>
    <script src="Public/Admin/js/mod.rule.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
    <div class="hd-menu-list">
        <ul>
            <li class="active">
                <a href="javascript:;">用户组列表</a>
            </li>
            <li>
                <a href="{{U('AuthGroup/add')}}">添加用户组</a>
            </li>

        </ul>
    </div>
    <div class="content">
        <table class="hd-table hd-table-list hd-form">
            <thead>
                <tr>
                    <td class="hd-w30"typeid</td>
                    <td>用户组名称</td>
                    <td>状态</td>
                    <td class="hd-w150">操作</td>
                </tr>
            </thead>
            <tbody>
            {{if value="$data"}}
                {{foreach from="$data" value="$v"}}
                <tr>
                    <td>{{$v['id']}}</td>
                    <td>{{$v['name']}}</td>
                    <td>{{if value="$v['status'] eq 1"}}启用{{else}}禁用{{endif}}</td>
                    <td>
                        <a href="{{U('AuthGroup/rule',array('id'=>$v['id']))}}">分配权限</a>
                        |
                        <a href="{{U('AuthGroup/edit',array('id'=>$v['id']))}}">修改</a>
                        |
                        <a href="javascript:;" onclick="del_modal('{{U('AuthGroup/del',array('id'=>$v['id']))}}')">删除</a>
                    </td>
                </tr>
                {{endforeach}}
            {{else}}
                <tr>
                	<td colspan="3">没有找到符合条件的记录</td>
                </tr>
            {{endif}}
            </tbody>
        </table>
    </div>


</body>
</html>